//定义一个 root component
import {Component} from "@angular/core";
import {HeaderComponent} from "./header.component";
import {BodyComponent} from "./body.component";
import {FooterComponent} from "./footer.component";


@Component({selector:"my-app",
    template:`
              <my-header></my-header>
              <my-body></my-body>
              <my-footer></my-footer>
              
                `,
    directives:[HeaderComponent, BodyComponent, FooterComponent]
})
export class AppComponent{
    
}